package org.jackysoft.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.jackysoft.entity.AbstractEntity;
import org.jackysoft.entity.Department;

@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
public class Technics extends AbstractEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5805671992252600171L;
	private Product product;
	private Department department;
	private String name;

	public Technics() {

	}

	@ManyToOne
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	@ManyToOne
	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}